home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cenvid9.zip / DIRSTAT.BAT < prev    next >
DOS Batch File  |  1994-03-04  |  815b  |  21 lines

  1. @echo OFF
  2. REM **************************************************************************
  3. REM *** DirStat.bat - Use Find#.cmm to parse directory listings and output ***
  4. REM *** ver.1         statistics about the current directory.  This batch  ***
  5. REM ***               file is very specific to COMMAND.COM under MSDOS     ***
  6. REM ***               version 5.0 and is not guaranteed to give correct    ***
  7. REM ***               results in any other circumstance.                   ***
  8. REM **************************************************************************
  9.  
  10. dir | find "file(s)" | cenvi Find#.cmm
  11. set FILE_COUNT=%NUMBER%
  12.  
  13. dir | find "file(s)" | cenvi Find#.cmm -1
  14.  
  15. ECHO The current directory contains %FILE_COUNT% files and uses %NUMBER% bytes.
  16.  
  17.  
  18. REM Clean-up
  19. set NUMBER=
  20. set FILE_COUNT=
  21.